package cn.itcast.service;

import cn.itcast.pojo.Clazz;
import cn.itcast.pojo.PageInfo;
import cn.itcast.pojo.QuaryParma;

import java.util.List;

public interface ClazzService {

    boolean addClazz(Clazz clazz);
    //通过Id查找班级
    Clazz findById(Integer id);
    //更新班级信息
    boolean upDate(Clazz clazz);
    //根据id删除
    boolean deleteById(int id);
    //分页查询
    PageInfo findByPage(QuaryParma quaryParma);

    List<Clazz> findAll();
}
